import request from '@/utils/request'

// 查询报名人员列表
export function listRegistrationPerson(query) {
  return request({
    url: '/enterprise/registrationPerson/list',
    method: 'get',
    params: query
  })
}

// 查询我的兼职列表
export function myParttimeList(query) {
  return request({
    url: '/enterprise/registrationPerson/myParttimeList',
    method: 'get',
    params: query
  })
}

// 查询报名人员详细
export function getRegistrationPerson(id) {
  return request({
    url: '/enterprise/registrationPerson/' + id,
    method: 'get'
  })
}

// 新增报名人员
export function addRegistrationPerson(data) {
  return request({
    url: '/enterprise/registrationPerson',
    method: 'post',
    data: data
  })
}

// 修改报名人员
export function updateRegistrationPerson(data) {
  return request({
    url: '/enterprise/registrationPerson',
    method: 'put',
    data: data
  })
}

// 删除报名人员
export function delRegistrationPerson(id) {
  return request({
    url: '/enterprise/registrationPerson/' + id,
    method: 'delete'
  })
}
